import java.util.Scanner;

public class Test {
    public static void main5(String[] args) {
        System.out.println(100%3);
    }
    public static void main4(String[] args) {
        System.out.println("hello word!!!");
    }
    public static void main3(String[] args) {

        Runtime runtime = Runtime.getRuntime();
        // 获取当前电脑cpu数量/核心
        int cpuNums = runtime.availableProcessors();
        System.out.println("当前电脑的cpu核心数：" + cpuNums);
    }
    public static void main8(String[] args) {
        //杨辉三角
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        //n控制行数
        //外循环控制行数
        //定义一个二维数组
        int[][]array = new int[n][n];
        for (int i = 0; i < n; i++) {
            //内层循环控制列数
            for (int j = array.length-i; j >1 ; j--) {
                System.out.print(" ");
            }
            for (int j = 0; j <=i ; j++) {
                if(j == 0 || i == j) {
                    array[i][j] = 1;
                    System.out.print(array[i][j]+" ");
                }
                else if(i != 0){
                    array[i][j] = array[i-1][j-1] + array[i-1][j];
                    System.out.print(array[i][j]+" ");
                }
            }
            System.out.println();
        }

    }

    public static void main1(String[] args) {

        //计算机程序
        Scanner scanner = new Scanner(System.in);
        int a = 0;
        int b = 0;
        while (true){
          try {
              System.out.println("请输入数字:");
              a = scanner.nextInt();
              System.out.println("请输入数字:");
              b = scanner.nextInt();

          }catch (Exception p){
              p.printStackTrace();
              System.out.println("输入非法");
          }

          System.out.println("请输入运算符:");
          String c = scanner.next();
          switch (c){
              case "+":
                  System.out.println(a+b);
                  break;
              case "-":
                  System.out.println(a-b);
                  break;
              case "*":
                  System.out.println(a*b);
                  break;

              case "/":
                  if(b == 0){
                      System.out.println("您输入的运算符不合法,请重新输入");
                      break;
                  }
                  System.out.println(a/b);
                  break;
              default:
                  System.out.println("您输入的运算符不合法,请重新输入");
                  break;
          }
          System.out.println("*********** 请输入数字 ************");
          System.out.println("****** 1.继续运算  2.退出运算 ******");
          System.out.println("*********************************");
              if(scanner.nextInt() == 0){
                  break;
              }
      }
    }

    public static void main7(String[] args) {
        Scanner scanner = new Scanner(System.in);
        //用户名
        String str1 = "test";
        //密码
        String str2 = "123456";
        System.out.println("请输入用户名");
        String ID = scanner.nextLine();
        System.out.println("请输入密码");
        String p = scanner.nextLine();
        if(ID.equals(str1) && p.equals(str2)){
            System.out.println("账户信息正确");
        }else {
            System.out.println("用户名或密码输入错误");
        }
    }

    public static void main(String[] args) {
        String[][] students = {{"220431302","马子轩","3班","线下"},{"220431303","方锦洲","3班","线下"},
                {"220431304","王润","3班","线下"},{"220431305","王韩昕","3班","线下"},{"220431306","史志敏","3班","线下"},
                {"220431307","刘翔","3班","线下"},{"220431308","师浩","3班","线下"},{"220431309","何一哲","3班","线下"},
                {"220431310","李洪顺","3班","线下"},{"220431311","汪涵","3班","线下"},{"220431312","周骞骞","3班","线下"},
                {"220431313","孟禹彤","3班","线下"},{"220431314","易冉","3班","线下"},{"220431315","段云鹏","3班","请假"},
                {"220431316","殷琦","3班","线上"},{"220431317","郝季超","3班","线下"},{"220431318","高佳兴","3班","线下"},
                {"220431319","高鑫诚","3班","线下"},{"220431320","曹金硕","3班","线下"},{"220431321","梁凯杰","3班","线下"},
                {"220431322","郭飞","3班","线下"},{"220431323","郭浩","3班","线下"},{"220431324","程越","3班","线下"},
                {"220431325","董正阳","3班","线上"},{"220431326","路猛辉","3班","线下"},{"220431327","戴蕴","3班","线下"},
                {"220431328","魏振东","3班","线下"},{"220431329","孙婷婷","3班","线下"},{"220431330","张艾雯","3班","线下"},
                {"220431331","张洋","3班","线上"},{"220431332","张泽豪","3班","线下"},{"220431333","张顺","3班","线下"},
                {"220431334","许淑萍","3班","线下"},{"220431335","许新媛","3班","线下"},{"220431336","赵畅","3班","线下"},
                {"220431401","丁生红","4班","线上"},{"220431402","马有志","4班","线下"},{"220431403","毛双","4班","线下"},
                {"220431404","牛盼盼","4班","线下"},{"220431405","付佳瑶","4班","线下"},{"220431408","石银鑫","4班","线下"},
                {"220431409","江玮怡","4班","线下"},{"220431410","李金灿","4班","线下"},{"220431411","祁毅","4班","线下"},
                {"220431412","柯宏博","4班","线下"},{"220431414","苟梦凡","4班","线下"},{"220431415","曹泽洋","4班","线下"},
                {"220431416","梁颖","4班","线下"},{"220431417","郭玉茹","4班","线下"},{"220431418","温泽同","4班","线下"},
                {"220431420","董雪瑞","4班","线下"},{"220431422","滕逸飞","4班","线下"},{"220431423","魏亚雯","4班","线下"},
                {"220431424","孙浩","4班","线下"},{"220431425","张佳新","4班","线下"},{"220431426","张晶晶","4班","线下"},
                {"220431427","杨子轩","4班","线下"},{"220431428","杨淼","4班","线下"},{"220431429","纪小花","4班","线下"},
                {"220431430","蒋严毅","4班","线上"},{"220431431","贾洋鑫","4班","线下"},{"220431432","赵林峰","4班","线下"},
                {"220431433","连兵雨","4班","线下"},{"220431434","陈佳谊","4班","线下"},{"220431435","陈昊","4班","线下"},
                {"220431436","韩宇琼","4班","线下"},{"221208422","张富强","4班","线下"},{"220706102","王韦淇","4班","线下"}};
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入学号");
        String ID = scanner.next();
        for (int i = 0; i < students.length; i++) {
            if(ID.equals(students[i][0])){
                System.out.println("查找成功");
                System.out.println("姓名 "+students[i][1]);
                System.out.println("班级 "+students[i][2]);
                System.out.println("上课方式 "+students[i][3]);
            return;
            }
        }
        System.out.println("查无此人");
    }

}
//   1
//  1 1
// 1 2 1
//1 2 2 1
